<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blogmer Documentation</title>

<style type='text/css' media='all'>@import url('../css/userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../css/userguide.css' />

<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
</head>
<body>
<!-- START NAVIGATION -->
<div id="nav"><div id="nav_inner"></div></div>
<div id="nav2"><a name="top">&nbsp;</a></div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>Blogmer beta 2</h1></td>
<td id="breadcrumb_right"><a href="table_of_content.html">Table of contents</a></td>
</tr>
</table>
</div>
<!-- END NAVIGATION -->


<!-- START BREADCRUMB -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td id="breadcrumb">
  <p><a href="http://speedovation.org/" >Speedovation</a> &nbsp;&#8250;&nbsp;
      <a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
    Table of contents</p>
  </td>

</tr>
</table>
<!-- END BREADCRUMB -->

<br clear="all" />


<!-- START CONTENT -->
<div id="content">


<h1>Blog_helper</h1>

<p>Blog_helper is core of blogmer.It contains all important functions.It generates post, page, feed in readable format from database.Let's discuss each function one by one.</p>

<p class="important"><strong>Beta:</strong>&nbsp; This is an <kbd>Beta</kbd> helper. It can be changed anytime.</p>
	
<p>Functions:</p>

<ul>
  <li> final_sidebar_data()</li>
  <li>get_post($id)</li>
  <li>do_search()</li>
  </ul>

<p>$id : represents post  id</p>
<h2>Blog_helper Function Reference</h2>

<h3>final_sidebar_data()</h3>
<p>It reads from database and generate array containing sidebar data.</p>
<p>Array contains:</p>
<ul>
  <li>$data['SearchForm']</li>
  <li>    $data['pages']</li>
  <li>    $data['Categories']</li>
  <li>    $data['TagClouds']</li>
  <li>    $data['RecentPosts']</li>
  <li>    $data['RecentComments']</li>
  <li>    $data['Archives']</li>
  </ul>
<p>&nbsp;</p>
<p class="important"><strong>Note</strong> : It <var></var>reads a private function for above values then according to blog settings it generate array.</p>
<h3>get_post($id)</h3>
<p>Generate an array</p>
<p>Array contains :</p>
<ul>
  <li>$r['read_comments']</li>
  <li>$r['comment_form']<br />
  </li>
</ul>
<p>To generate we use proper blog permission such as guest comment is enabled or not and so on...</p>
<h3>do_search()</h3>
<p>Return a array with content as index containing all search results.</p>
<h2>Final Collection</h2>
<p>
	<code>
    	$this->load->helper('Blog_helper');<br />
    	final_sidebar_data();<br />
    	get_post($id);<br />
    do_search();</code></p>

</div>
<!-- END CONTENT -->


<div id="footer">
<p><a href="#top">Top of Page</a></p>
<p><a href="http://speedovation.com">Speedovation</a> &nbsp;&middot;&nbsp; Copyright &#169; 2007-2008 &nbsp;&middot;&nbsp; <a href="http://speedovation.org/">Blogmer</a></p></div>

</body>
</html>